<?php
/*******************************************************************************
 *
 *  Name: changeReport
 *
 *  Date: 2012-04-25
 *  
 *  Description: This is the view for changing a Sensor Report
 *  
 *  Author: Travis Rous
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-25   TRAVIS ROUS
 *  2012-04-25   TRAVIS ROUS
 * 
 *****************************************************************************/
?>
<html>
<head>
<title>CR Form</title>
</head>
<body>

<h1>Customer Service Page</h1>
<h3>Sensor Info </h3>

<?php echo form_open('CR_form/edit_sensor'); ?><br>
<input type="hidden" name="ReportID" value="<?php echo $Report['ReportID_save']; ?>" />

<table style="text-align: left; width: 382px; height: 200px;" border="0" cellpadding="2" cellspacing="15">
<tbody>
<tr>
<td>Sensor ID:</td>
<td><input name="sensorID" type="text" value="<?php echo $Report['SensorID'] ?>"></td>
</tr>
<tr>
  <td>Address line:</td>
  <td><input name="Addressline1" type="text" value="<?php echo $Report['Address']; ?>"></td>
</tr>
<tr>
<td>City: </td>
<td><input name="city" type="text" value="<?php echo $Report['City']; ?>"></td>
</tr>
<tr>
<td>State: </td>
<td>
<select name="State" ><option Value="<?php echo $Report['State']; ?>"><?php echo $Report['State']; ?> </option><option value="AL"<?php echo set_select('State','AL'); ?>>AL</option><option value="AK"<?php echo set_select('State','AK'); ?>>AK</option><option value="AZ"<?php echo set_select('State','AZ'); ?>>AZ</option><option value="AR"<?php echo set_select('State','AR'); ?>>AR</option><option value="CA"<?php echo set_select('State','CA'); ?>>CA</option><option value="CO"<?php echo set_select('State','CO'); ?>>CO</option><option value="CT"<?php echo set_select('State','CT'); ?>>CT</option><option value="DE"<?php echo set_select('State','DE'); ?>>DE</option><option value="FL"<?php echo set_select('State','FL'); ?>>FL</option><option value="GA"<?php echo set_select('State','GA'); ?>>GA</option><option value="HI"<?php echo set_select('State','HI'); ?>>HI</option><option value="ID"<?php echo set_select('State','ID'); ?>>ID</option><option value="IL"<?php echo set_select('State','IL'); ?>>IL</option><option value="IN"<?php echo set_select('State','IN'); ?>>IN</option><option value="IA"<?php echo set_select('State','IA'); ?>>IA</option><option value="KS"<?php echo set_select('State','KS'); ?>>KS</option><option value="KY"<?php echo set_select('State','KY'); ?>>KY</option><option value="LA"<?php echo set_select('State','LA'); ?>>LA</option><option value="ME"<?php echo set_select('State','ME'); ?>>ME</option><option value="MD"<?php echo set_select('State','MD'); ?>>MD</option><option value="MA"<?php echo set_select('State','MA'); ?>>MA</option><option value="MI"<?php echo set_select('State','MI'); ?>>MI</option><option value="MN"<?php echo set_select('State','MN'); ?>>MN</option><option value="MS"<?php echo set_select('State','MS'); ?>>MS</option><option value="MO"<?php echo set_select('State','MO'); ?>>MO</option><option value="MT"<?php echo set_select('State','MT'); ?>>MT</option><option value="NE"<?php echo set_select('State','NE'); ?>>NE</option><option value="NV"<?php echo set_select('State','NV'); ?>>NV</option><option value="NH"<?php echo set_select('State','NH'); ?>>NH</option><option value="NJ"<?php echo set_select('State','NJ'); ?>>NJ</option><option value="NM"<?php echo set_select('State','NM'); ?>>NM</option><option value="NY"<?php echo set_select('State','NY'); ?>>NY</option><option value="NC"<?php echo set_select('State','NC'); ?>>NC</option><option value="ND"<?php echo set_select('State','ND'); ?>>ND</option><option value="OH"<?php echo set_select('State','OH'); ?>>OH</option><option value="OK"<?php echo set_select('State','OK'); ?>>OK</option><option value="OR"<?php echo set_select('State','OR'); ?>>OR</option><option value="PA"<?php echo set_select('State','PA'); ?>>PA</option><option value="RI"<?php echo set_select('State','RI'); ?>>RI</option><option value="SC"<?php echo set_select('State','SC'); ?>>SC</option><option value="SD"<?php echo set_select('State','SD'); ?>>SD</option><option value="TN"<?php echo set_select('State','TN'); ?>>TN</option><option value="TX"<?php echo set_select('State','TX'); ?>>TX</option><option value="UT"<?php echo set_select('State','UT'); ?>>UT</option><option value="VT"<?php echo set_select('State','VT'); ?>>VT</option><option value="VA"<?php echo set_select('State','VA'); ?>>VA</option><option value="WA"<?php echo set_select('State','WA'); ?>>WA</option><option value="WV"<?php echo set_select('State','WV'); ?>>WV</option><option value="WI"<?php echo set_select('State','WI'); ?>>WI</option><option value="WY"<?php echo set_select('State','WY'); ?>>WY</option></select>
</td>
</tr>
<tr>
<td>Zip Code:</td>
<td><input name="zipcode" type="text" value="<?php echo $Report['Zipcode']; ?>"></td>
</tr>
</tbody>
</table>
<br>
Additional Comments:
<br>
<textarea rows="10" cols="30" name="Comments" text""><?php echo $Report['Description']; ?></textarea><br>
<br>
<input type="submit">
</form>
